package iss.anxios.dto;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "respondentattributeassociation")
public class RespondentAttributeAssociationNew {
	@Id
	@Column(name = "Id")
	private int id;

	@Column(name="RespondentId")
	private int RespondentId;
	

	@Column(name = "ImportanceValue")
	private float importanceValue;
	
	@Column(name = "SenstivitValue")
	private float SenstivitValue;
	
	
	
	public float getSenstivitValue() {
		return SenstivitValue;
	}

	public void setSenstivitValue(float senstivitValue) {
		SenstivitValue = senstivitValue;
	}

	public float getImportanceValue() {
		return importanceValue;
	}

	public void setImportanceValue(float importanceValue) {
		this.importanceValue = importanceValue;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getRespondentId() {
		return RespondentId;
	}

	public void setRespondentId(int respondentId) {
		RespondentId = respondentId;
	}

	public float getImportantById(int id){
		float r =0.0f;
		if(this.RespondentId == id){
			r = this.importanceValue;
		}
		return r;
	}
}